package com.dtw.ditouwang.beans;

import java.util.List;

public class EditorChooseBean {

    /**
     * flag : Success
     * msg : 查询成功
     * result : true
     * data : {"ad":{"background":"/public/uploads/20181201\\4c8593b0bd56b71e2e2e0b7468fd9715.jpg","link":"baidu","address":"1"},"data":[{"name":"精彩内容","data":[{"id":5,"name":"运动精彩内容","bg_img":"xx.jpg"},{"id":6,"name":"健康精彩内容","bg_img":"xx.jpg"},{"id":7,"name":"生活精彩内容","bg_img":"xx.jpg"},{"id":8,"name":"福利精彩内容","bg_img":"xx.jpg"}]},{"name":"活动","data":[{"id":9,"name":"摄影精彩内容","bg_img":"xx.jpg"}]}]}
     */

    private String flag;
    private String msg;
    private boolean result;
    private DataBeanXX data;

    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public DataBeanXX getData() {
        return data;
    }

    public void setData(DataBeanXX data) {
        this.data = data;
    }

    public static class DataBeanXX {
        /**
         * ad : {"background":"/public/uploads/20181201\\4c8593b0bd56b71e2e2e0b7468fd9715.jpg","link":"baidu","address":"1"}
         * data : [{"name":"精彩内容","data":[{"id":5,"name":"运动精彩内容","bg_img":"xx.jpg"},{"id":6,"name":"健康精彩内容","bg_img":"xx.jpg"},{"id":7,"name":"生活精彩内容","bg_img":"xx.jpg"},{"id":8,"name":"福利精彩内容","bg_img":"xx.jpg"}]},{"name":"活动","data":[{"id":9,"name":"摄影精彩内容","bg_img":"xx.jpg"}]}]
         */

        private List<AdBean> ad;
        private List<DataBeanX> data;

        public List<AdBean> getAd() {
            return ad;
        }

        public void setAd(List<AdBean> ad) {
            this.ad = ad;
        }

        public List<DataBeanX> getData() {
            return data;
        }

        public void setData(List<DataBeanX> data) {
            this.data = data;
        }

        public static class AdBean {
            /**
             * background : /public/uploads/20181201\4c8593b0bd56b71e2e2e0b7468fd9715.jpg
             * link : baidu
             * address : 1
             */

            private String background;
            private String link;
            private String address;

            public String getBackground() {
                return background;
            }

            public void setBackground(String background) {
                this.background = background;
            }

            public String getLink() {
                return link;
            }

            public void setLink(String link) {
                this.link = link;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }
        }

        public static class DataBeanX {
            /**
             * name : 精彩内容
             * data : [{"id":5,"name":"运动精彩内容","bg_img":"xx.jpg"},{"id":6,"name":"健康精彩内容","bg_img":"xx.jpg"},{"id":7,"name":"生活精彩内容","bg_img":"xx.jpg"},{"id":8,"name":"福利精彩内容","bg_img":"xx.jpg"}]
             */

            private String name;
            private List<DataBean> data;

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public List<DataBean> getData() {
                return data;
            }

            public void setData(List<DataBean> data) {
                this.data = data;
            }

            public static class DataBean {
                /**
                 * id : 5
                 * name : 运动精彩内容
                 * bg_img : xx.jpg
                 */

                private int id;
                private String name;
                private String bg_img;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getBg_img() {
                    return bg_img;
                }

                public void setBg_img(String bg_img) {
                    this.bg_img = bg_img;
                }
            }
        }
    }
}
